package com.cc.crm.service.impl;

import com.cc.crm.entity.SalChance;
import com.cc.crm.mapper.SalChanceMapper;
import com.cc.crm.service.SaleChanceService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2020-12-29 16:18
 */
@Service
public class SaleChanceServiceImpl implements SaleChanceService {
    @Autowired
    private SalChanceMapper salChanceMapper;
    @Override
    public List<SalChance> list(int pNum, int pageSize) {
        PageHelper.startPage(pNum,pageSize);
        return salChanceMapper.selectByExample(null);
    }
}
